package com.sevenGroup.pawnshop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sevenGroup.pawnshop.controller.form.SecondTypeForm;
import com.sevenGroup.pawnshop.controller.form.SencondTypePageForm;
import com.sevenGroup.pawnshop.controller.info.SecondTypeInfo;
import com.sevenGroup.pawnshop.exception.sevenGroupException;
import com.sevenGroup.pawnshop.model.SecondType;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sevenGroup
 * @since 2022-02-16
 */
public interface SecondTypeService extends IService<SecondType> {

    void saveAndUpdate(SecondTypeForm secondTypeForm) throws sevenGroupException;

    List<SecondTypeInfo> selectAll() throws sevenGroupException;

    void del(List<Integer> id) throws sevenGroupException;

    IPage<SecondTypeInfo> selectByName(SencondTypePageForm sencondTypePageForm) throws sevenGroupException;

    List<SecondTypeInfo> selectByFirstId(Integer firstId);
}
